import { useIntl, useModel } from 'umi';
import { DefaultFooter } from '@ant-design/pro-layout';

export default () => {
  const { initialState } = useModel('@@initialState');
  const intl = useIntl();
  const defaultMessage = intl.formatMessage({
    id: 'app.copyright.produced',
    defaultMessage: '蚂蚁集团体验技术部出品',
  });

  const currentYear = new Date().getFullYear();

  return (
    <DefaultFooter
      copyright={initialState?.settings?.copyright ?? `${currentYear} ${defaultMessage}`}
      links={[]}
    />
  );
};
